package com.tencent.array02;

;

/**
 * @author Mucd
 * @Date 2020/12/8/008
 * @ClassName Test
 */
public class Test {
    public static void main(String[] args) {
        //定义长度为2的int数组
        int[] arr = new int[2];
        int[] arr1 = arr;
        int[] arr2 = arr;
        System.out.println(arr1);
        System.out.println(arr2);
        //遍历数组
        arr1[0] = 10;
        arr1[1] = 20;
        for (int intArr : arr){
            System.out.println(intArr);
        }



    }
}
